﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;

namespace Vux.Chart.Objects
{
    internal class DataSeries
    {
        #region Private Members
        private double[,] m_db_data;
        private bool m_bl_update_yrange;
        private float m_int_width;
        private Color m_cl_color;
        #endregion

        #region Properties
        /// <summary>
        /// Dữ liệu ?
        /// </summary>
        public double[,] Data
        {
            get { return m_db_data; }
            set { m_db_data = value; }
        }
        /// <summary>
        /// Dữ liệu có làm thay đổi cột Y không?
        /// </summary>
        public bool UpdateYRange
        {
            get { return m_bl_update_yrange; }
            set { m_bl_update_yrange = value; }
        }

        /// <summary>
        /// Màu ?
        /// </summary>
        public Color Color
        {
            get { return m_cl_color; }
            set { m_cl_color = value; }
        }
        /// <summary>
        /// Độ đậm ?
        /// </summary>
        public float Width
        {
            get { return m_int_width; }
            set { m_int_width = value; }
        }
        #endregion

        #region Constructors
        public DataSeries()
        {
            m_bl_update_yrange = true;
            m_int_width = 1;
            m_cl_color = Color.Blue;
            // data null
            m_db_data = null;
        }
        #endregion
    }
}
